package cn.net.qinling.xmlaccess;

import java.util.Hashtable;

import oracle.xml.parser.v2.NSResolver;

public class CdaNSResolver implements NSResolver {
	

	private Hashtable<String, String> nsTable = new Hashtable<String, String>();

	public CdaNSResolver() {
		nsTable.put("xmlns", "urn:hl7-org:v3");
		nsTable.put("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance");
	}

	@Override
	public String resolveNamespacePrefix(String namespace) {
		return this.nsTable.get(namespace);
	}

}
